package org.dromara.comm.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.dromara.comm.domain.AsServiceChannels;
import org.dromara.comm.service.AsServicePlatformEchoDisplayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 查询添加的服务指南控制层
 * @author: 郭伟明
 * @date: 2024-07-31 16:18
 **/
@RestController
@RequestMapping("/AsServicePlatformEchoDisplay")
@Tag(name = "查询添加的服务指南控制层")
public class AsServicePlatformEchoDisplayController {

    @Autowired
    private AsServicePlatformEchoDisplayService asServicePlatformEchoDisplayService;

    @Operation(summary = "查询添加的服务指南")
    @GetMapping("/queryGuideAll")
    private ResponseEntity<Object> queryGuideAll(AsServiceChannels asServiceChannels) {
        return new ResponseEntity<>(asServicePlatformEchoDisplayService.guideAll(asServiceChannels), HttpStatus.OK);
    }

    @Operation(summary = "查询添加的服务指南信息")
    @GetMapping("/selectAsServicePlatformEchoDisplayById")
    private ResponseEntity<Object> selectAsServicePlatformEchoDisplayById(@RequestParam Integer id) {
        return new ResponseEntity<>(asServicePlatformEchoDisplayService.selectAsServicePlatformEchoDisplayById(id), HttpStatus.OK);
    }

}
